#!/bin/bash
moduleName=$1
count=$(find ./${moduleName}/target -name "*.jar" | wc -l)
jar_name=$(find ./${moduleName}/target -name "*.jar")
if [[ $count -eq 1 ]]; then
    mv $jar_name app.jar
fi